@import url('/public/styles/theme.css');
@import url('/public/styles/loading.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* iconfont 图标样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

html, body {
    box-sizing: border-box;
    line-height: 1.4;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
*::-webkit-scrollbar {
    display: block;
    width: 6px;
    height: 2px;
}
*::-webkit-scrollbar-thumb {
    background: var(--gray-4);
    border-radius: 6px;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--main-5);
}
*::-webkit-scrollbar-track {
    background: transparent;
}


#root{
    width: 100%;
    height: 100%;
}

a {
    text-decoration: unset;
    color: var(--main-5);
}

a:hover, a:visited, a:active{
    color: var(--main-6);
}

/* 滚动条组件样式 重新定义 */
.ms-theme-light {
    --ms-track-background: var(--gray-2);
    --ms-track-border-color: var(--gray-3) !important;
    --ms-thumb-color: var(--gray-5) !important;
}

.notification .ant-notification-notice-close{
    right: 6px !important;
    top: 6px !important;
}
body .ant-skeleton.ant-skeleton-element{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body .ant-skeleton.ant-skeleton-element > span{
    width: 100%;
}

/* chat 用 */
.pending{ position: relative; }
.pending::after {
    display: inline-block;
    content: "";
    width: 2px;
    height: 20px;
    animation: typing 0.6s infinite;
    overflow-wrap: break-word;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: -2px;
}
@keyframes typing {
    0% { background-color: transparent; }
    50% { background-color: var(--main-5);}
    100% { background-color: transparent;}
}